/**
 * Created by charlie on 18-1-11.
 */

export default {
    namespace:'personalInfoes',
    state:{
        loading:true,
        data:{}
    },
    subscriptions:{

    },
    effects:{
        *getInfoes({payload},{call,put,select}){
            const {loginInfoes} = yield select(state => state.login)
            yield put({type:'basicInfoes',payload:loginInfoes})
        }
    },
    reducers:{
        basicInfoes(state,{payload}){
            return {...state,data:payload}
        },
        getLoading(state,{payload}){
            return{...state,loading:false}
        },
        getClean(state,{payload}){
            return {...state,loading:true}
        },
    }
}